home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / INFO / FTP2UK23.ZIP / ftget next >
Text File  |  1991-09-16  |  585b  |  33 lines

  1. #!/bin/sh
  2. #
  3. # $Id: ftget,v 1.0 91/09/16 18:00:12 nino Exp Locker: nino $
  4. #
  5. # N.Margetic, Dept. of Medical Physisc, UCL  (nino@mph.sm.ucl.ac.uk)
  6. # script for getting the stuff via ft-relay
  7. #
  8. # $Log:    ftget,v $
  9. # Revision 1.0  91/09/16  18:00:12  nino
  10. # Initial revision
  11. #
  12. #
  13. pgname=`basename $0`
  14. swch=
  15. dir=
  16. file=
  17. host=
  18. user=anonymous
  19. pw=nino@mph.sm.ucl.ac.uk
  20. #
  21. case $1 in
  22. "")    echo "usage: $pgname [-b] directory file host"; exit 1;;
  23. -*)    swch=$1; shift;;
  24. esac
  25. #
  26. dir=$1; shift;
  27. file=$1; shift;
  28. host=$1; shift;
  29. #
  30. cpf $swch -U=$user@$host -p=$pw $dir/$file@uk.ac.ft-relay $file
  31. #
  32. # end
  33.